/**********************************************************
 * File description:devicemanagement.h
 * Function:设备管理类
 * Current Version: 1.0.0
 * Author: 王伟豪
 * Date: 2022-10-02
 *  -----
 *  Copyright by BoKun Software.
 **********************************************************/
#ifndef DEVICEMANAGEMENT_H
#define DEVICEMANAGEMENT_H

#include<QString>
#include<QDate>
#include <QCoreApplication>
#include<SqliteDriver.h>
#include<Constant.h>


class DeviceManagement
{
public:

    QString path;
    SqliteDriver * sqlD;

    DeviceManagement();
    ~DeviceManagement();
    void create(QString name, QString mac, QString ip, QString port, QString serialNumber, QString status);
    void remove(QString id);
    void revise(QString id,QString name, QString mac, QString ip, QString port, QString serialNumber, QString status);
    QList<QHash<QString,QString>> show();
    QList<QHash<QString,QString>> refresh(QString id);
};


#endif // DEVICEMANAGEMENT_H
